package metier;

import java.util.ArrayList;

public class Velo
{
	private static int nbVelo;
	private int idVelo;	
	private TypeVelo typeVelo;
	private String libelleVelo;
	private ArrayList<Velo> lesVelos;
	private boolean admin;
	
	public Velo(TypeVelo typeVelo, String libelleVelo)
	{
		super();
		this.idVelo = nbVelo + 1;
		this.typeVelo = typeVelo;
		this.libelleVelo = libelleVelo;
		lesVelos = new ArrayList<Velo>();
		nbVelo = nbVelo + 1;
	}
	
	public ArrayList<Velo> getLesVelos()
	{
		return lesVelos;
	}
	
	public String toString()
	{
		return idVelo + " - TypeVelo= " + typeVelo
				+ " " + libelleVelo;
	}
}
